import { observable } from 'mobx'
// import homeService from '../service/model/home'
import serviceApi from '../service'

const homeStore = observable({
  films: [],
  /* 获取列表值 */
  async getFilms() {
    const res = await serviceApi.getLoginInfo()
    console.log(res.data.data, 'reeee--sdfs--');
    this.films = res.data.data
  },
  counter: 0,
  increment() {
    this.counter++
  }
})
export default homeStore
